package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_fnpoptimize_relation")
@Table(appliesTo = "mb_fnpoptimize_relation", comment = "规则引擎-页面规则优化表")
public class FNPOptimizeRelation extends BaseModel implements Serializable {

	private static final long serialVersionUID = 6904986287341538252L;

	/**
	 * 流程ID
	 */
	@ApiModelProperty(value = "流程ID")
	@Column(name = "flow_id", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '流程ID'")
	private String flowId;

	/**
	 * 节点
	 */
	@ApiModelProperty(value = "节点")
	@Column(name = "node_id", columnDefinition = "varchar(20) DEFAULT NULL COMMENT '节点'")
	private String nodeId;

	/**
	 * 页面规则表主键组合
	 */
	@ApiModelProperty(value = "页面规则表主键组合")
	@Column(name = "page_ids", columnDefinition = "varchar(50) DEFAULT NULL COMMENT '页面规则表主键组合'")
	private String pageIds;

	/**
	 * 规则组合逻辑
	 */
	@ApiModelProperty(value = "规则组合逻辑")
	@Column(name = "rule_logic", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '规则组合逻辑'")
	private String ruleLogic;

	/**
	 * 将要跳转的页面ID
	 */
	@ApiModelProperty(value = "将要跳转的页面ID")
	@Column(name = "to_page_id", columnDefinition = "varchar(50)  DEFAULT NULL COMMENT '将要跳转的页面ID'")
	private String toPageId;

	/**
	 * 将要跳转的页面名称
	 */
	@ApiModelProperty(value = "将要跳转的页面名称")
	@Column(name = "to_page_name", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '将要跳转的页面名称'")
	private String toPageName;

	/**
	 * 将要跳转的页面描述
	 */
	@ApiModelProperty(value = "将要跳转的页面描述")
	@Column(name = "to_page_router", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '将要跳转的页面描述'")
	private String toPageRouter;

	/**
	 * 是否启用规则，1启用；0关闭
	 */
	@ApiModelProperty(value = "是否启用规则，1启用；0关闭")
	@Column(name = "status", columnDefinition = "varchar(10) NOT NULL  DEFAULT 1 COMMENT '是否启用规则，1启用；0关闭'")
	private String status;

	/**
	 * 备注
	 */
	@ApiModelProperty(value = "备注")
	@Column(name = "remark", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '备注'")
	private String remark;

	/** 备用字段 **/
	@ApiModelProperty(value = "备用字段")
	@Column(name = "ext1", columnDefinition = "varchar(100) DEFAULT NULL COMMENT '备用字段' ")
	private String ext1;

	/** 备用字段 **/
	@ApiModelProperty(value = "备用字段")
	@Column(name = "ext2", columnDefinition = "varchar(100) DEFAULT NULL COMMENT '备用字段' ")
	private String ext2;

	/** 备用字段 **/
	@ApiModelProperty(value = "备用字段")
	@Column(name = "ext3", columnDefinition = "varchar(100) DEFAULT NULL COMMENT '备用字段' ")
	private String ext3;

	/** 备用字段 **/
	@ApiModelProperty(value = "备用字段")
	@Column(name = "ext4", columnDefinition = "varchar(100) DEFAULT NULL COMMENT '备用字段' ")
	private String ext4;

	/** 备用字段 **/
	@ApiModelProperty(value = "备用字段")
	@Column(name = "ext5", columnDefinition = "varchar(100) DEFAULT NULL COMMENT '备用字段' ")
	private String ext5;

}
